<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[scenario]" value="add">
    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('选择用户')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-user_id" class="form-control selectpage" type="text" name="row[user_id]" title="" data-rule="required" data-source="yunfood/user/index" data-field="nickname" data-format-item="{nickname} - {mobile}"
                   data-search-field="nickname,mobile" data-order-by="id">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>